Tutorial > Error Checking

Resetting the Instrument | Programming AC Output
Programming DC Output | Triggering Output Changes | Output-on Phase Control
Measurement | Status Monitoring | Error Checking

Error Checking

Error/Event Queue

The SCPI specifications define a standard error reporting scheme --- Error/Event Queue. This is a FIFO (First In First Out) queue, which records errors and events. The maximum number of errors/events that can be recorded in the PCR-M is 255. Each error/event can be read by the SYSTem:ERRor query.

 

:SYSTem:ERRor?

 

The response to this query contains a numerical part (error/event number) and a textual description, such as:

 

-222,"Data out of range"

 

The error/event queue is empty when the *CLS common command is sent, when the last item in the queue is read, or when the PCR-M is turned on. When the error/event queue is empty, the query returns the following:

 

0,"No error"

Communication error trace function

The PCR-M is equipped with a "Debug/Trace" function, which allows the error/event items to be displayed. From the PCR-M front panel, press the CONFIG key several times until the "TRAC" item is shown, and then select ON. This configuration enables the Debug/Trace function to display the "oldest" item in the error/event queue, if any exists. This function is convenient when you debug your remote applications.

While an error/event item is displayed, the normal voltmeter and ammeter are disabled.

When the error/event queue is empty, the Debug/Trace function does not display any error/events. Sending the *CLS command clears the error/event display.

When in local mode, the communication error trace function is temporarily disabled.

The communication error trace function can be enabled or disabled with the SYSTem:CONFigure:TRACe command.